﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace StudentControlSystem.Entity
{
    public class Class
    {
        public int ClassId { get; set; }
        public string ClassName { get; set; }
        public int SchoolId { get; set; }
        public List<Student> Students { get; set; }

        public Class() { }
        public Class(int classId, string className, int schoolId)
        {
            ClassId = classId;
            ClassName = className;
            SchoolId = schoolId;
        }

        public void  addStudent(Student student)
        {
            Students.Add(student);
        }
    }
}
